xen: add macro for version number string
authorLeo Yan <leo.yan@linaro.org>
Thu, 8 Sep 2022 07:28:58 +0000 (09:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Sep 2022 07:28:58 +0000 (09:28 +0200)
commitf2bf0a45b005d7e296a7597922fcca1bab0e56f1
tree166764d90767faebe9d03187e71fdff363f35834
parent3a2feae17e0e43ab87565ab58334147fc8443915
xen: add macro for version number string

On Arm64 Linux kernel prints log for Xen version number:

  Xen XEN_VERSION.XEN_SUBVERSION support found

The header file "xen/compile.h" is missed so that XEN_VERSION and
XEN_SUBVERSION are not defined, __stringify() wrongly converts them as
strings and concatenate to string "XEN_VERSION.XEN_SUBVERSION".

This patch introduces a string macro XEN_VERSION_STRING, we can directly
use it as version number string, as a result it drops to use of
__stringify() to make the code more readable.

The change has been tested on Ampere AVA Arm64 platform.

Fixes: 5d797ee199b3 ("xen/arm: split domain_build.c")
Suggested-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/arm/acpi/domain_build.c
xen/arch/arm/domain_build.c
xen/common/efi/boot.c
xen/include/xen/compile.h.in